﻿/*
 * @Autor: PK
 * @Date: 2022/01/10 14:14:SS
 */

using System.Collections.Generic;

namespace ShkSimulation.core.factory {

	public class CreateParam {

		public Dictionary<string, object> Params { get; set; }

		public List<string> PropertyNames => new List<string>(Params.Keys);
		
		public object this[string name] {
			get { 
				return Params[name];
			}
			set {
				Params[name] = value;
			}
		}

		public static CreateParam Create(Dictionary<string, object> each) {
			CreateParam param = new CreateParam();
			param.Params = each;
			return param;
		}

	}

}